package com.huawei.java.main;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author MicahYin
 * @date 2021/3/20 15:55
 * 测试代码
 */
public class Test {
    public static void count(AtomicInteger number){
        number.getAndDecrement();
    }
    public static void main(String[] args) {
        AtomicInteger number = new AtomicInteger(500 * 5 / 1000);
        System.out.println(number.get());
        count(number);
        System.out.println(number.get());
    }

}
